import Vue from 'vue'
import VueRouter from 'vue-router'

Vue.use(VueRouter)

const routes = [
  {
    path: '/loading.html',
    name: 'loading',
    component: () => import('../views/index/loading.vue')
  },
  {
    path: '/',
    name: 'index',
    component: () => import('../views/index/index.vue')
  },
  {
    path: '/news.html',
    name: 'news',
    component: () => import('../views/news/news.vue')
  },
  {
    path: '/myself.html',
    name: 'myself',
    component: () => import( '../views/myself/myself.vue')
  },
  {
    path: '/problem.html',
    name: 'problem',
    component: () => import( '../views/problem/problem.vue')
  },
  {
    path: '/complain.html',
    name: 'complain',
    component: () => import('../views/complain/complain.vue')
  },
  {
    path: '/newsdetails/:id.html',
    name: 'newsdetails',
    component: () => import('../views/news/newsdetails.vue')
  },
  {
    path: '/information.html',
    name: 'information',
    component: () => import( '../views/myself/information.vue')
  },
  {
    path: '/addinformation.html',
    name: 'addinformation',
    component: () => import( '../views/myself/addinformation.vue')
  },
  {
    path: '/editinformation/:id.html',
    name: 'editinformation',
    component: () => import( '../views/myself/addinformation.vue')
  },
  {
    path: '/myproblemlist.html',
    name: 'myproblemlist',
    component: () => import( '../views/myself/myproblemlist.vue')
  },
  {
    path: '/agency.html',
    name: 'agency',
    component: () => import( '../views/myself/myproblemlist.vue')
  },
  {
    path: '/completed.html',
    name: 'completed',
    component: () => import( '../views/myself/myproblemlist.vue')
  },
  {
    path: '/allorder.html',
    name: 'allorder',
    component: () => import( '../views/myself/myproblemlist.vue')
  },
  {
    path: '/problemdetil/:id.html',
    name: 'problemdetil',
    component: () => import( '../views/myself/problemdetil.vue')
  },
  {
    path: '/reply/:id.html',
    name: 'reply',
    component: () => import( '../views/myself/reply.vue')
  },
  {
    path: '/login.html',
    name: 'login',
    component: () => import('../views/login/login.vue')
  },

]

const router = new VueRouter({
  mode: 'hash',
  base: process.env.BASE_URL,
  routes
})


export default router
